package com.jilefojing.beans.pojos;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import com.jilefojing.beans.pojos.base.BasePo;

/**
 * 
 * @author jgshun
 * 
 */
@Table(name = "d_dictionary")
public class Dictionary extends BasePo {

	/**
	 * 
	 */
	private static final long serialVersionUID = 3350282125874449119L;

	public static final String FIELD_ID = "id";
	public static final String FIELD_NODE = "node";
	public static final String FIELD_NODENAME = "nodeName";
	public static final String FIELD_PARENTID = "parentId";
	public static final String FIELD_DESC = "msg";

	public static final String COLUMN_ID = "id";
	public static final String COLUMN_NODE = "node";
	public static final String COLUMN_NODE_NAME = "node_name";
	public static final String COLUMN_PARENT_ID = "parent_id";
	public static final String COLUMN_DESC = "msg";

	@Id
	@GeneratedValue(generator = "JDBC")
	private Long id;

	/**
	 * 节点key
	 */
	private String node;

	/**
	 * 节点名称
	 */
	@Column(name = "node_name")
	private String nodeName;

	/**
	 * 父节点id
	 */
	@Column(name = "parent_id")
	private Long parentId;

	/**
	 * 描述
	 */
	@Column(name = "description")
	private String msg;

	/**
	 * @return id
	 */
	public Long getId() {
		return id;
	}

	/**
	 * @param id
	 */
	public void setId(Long id) {
		this.id = id;
	}

	/**
	 * 获取节点key
	 * 
	 * @return node - 节点key
	 */
	public String getNode() {
		return node;
	}

	/**
	 * 设置节点key
	 * 
	 * @param node
	 *            节点key
	 */
	public void setNode(String node) {
		this.node = node;
	}

	/**
	 * 获取节点名称
	 * 
	 * @return node_name - 节点名称
	 */
	public String getNodeName() {
		return nodeName;
	}

	/**
	 * 设置节点名称
	 * 
	 * @param nodeName
	 *            节点名称
	 */
	public void setNodeName(String nodeName) {
		this.nodeName = nodeName;
	}

	/**
	 * 获取父节点id
	 * 
	 * @return parent_id - 父节点id
	 */
	public Long getParentId() {
		return parentId;
	}

	/**
	 * 设置父节点id
	 * 
	 * @param parentId
	 *            父节点id
	 */
	public void setParentId(Long parentId) {
		this.parentId = parentId;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

}